/* 
 * File:   KeyboardParameterCommand.h
 * Author: Gab'z
 *
 * Created on 5 juin 2012, 12:29
 */

#ifndef KEYBOARDPARAMETERCOMMAND_H
#define	KEYBOARDPARAMETERCOMMAND_H

#include "ParametersCommand.h"

namespace calculator {

    class KeyboardParameterCommand : public ParametersCommand {
        friend class CommandMap;

    public:
        virtual KeyboardParameterCommand* clone() const;

        void apply(Parameters* parameters) const;
        virtual ~KeyboardParameterCommand();
        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);
        
    protected:
        KeyboardParameterCommand(const std::string name);
        KeyboardParameterCommand(const KeyboardParameterCommand& orig);
    };

}

#endif	/* KEYBOARDPARAMETERCOMMAND_H */

